package com.eian.boot.module.system.log.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 操作日志列表响应
 *
 * @author alex.meng
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "操作日志列表响应")
public class OperationLogVO implements Serializable {

    @Schema(description = "日志ID")
    private Long id;

    @Schema(description = "操作模块")
    private String module;

    @Schema(description = "业务类型")
    private Integer businessType;

    @Schema(description = "业务描述")
    private String businessDesc;

    @Schema(description = "请求方式")
    private String requestMethod;

    @Schema(description = "请求URL")
    private String requestUrl;

    @Schema(description = "操作人员ID")
    private Long operatorId;

    @Schema(description = "操作人员名称")
    private String operatorName;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "请求IP")
    private String requestIp;

    @Schema(description = "IP归属地")
    private String requestLocation;

    @Schema(description = "操作状态：1-成功，0-失败")
    private Integer status;

    @Schema(description = "执行耗时（毫秒）")
    private Long costTime;

    @Schema(description = "浏览器")
    private String browser;

    @Schema(description = "操作系统")
    private String os;

    @Schema(description = "操作时间")
    private LocalDateTime createdAt;
}


